package loc.dd.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import loc.dd.entity.Abilities;
import loc.dd.entity.Permissions;
import loc.dd.mapper.WlbgcMapper;


/**
*@author 作者：huyaqi
*@version 创作时间:2023年9月19日上午10:22:46
*
*/
@Service
public class WlbgcService {
	@Autowired
	WlbgcMapper wlbgcMapper;
	
	 public List<Permissions> getjs(HashMap<String,Integer> map) {
		 return wlbgcMapper.getjs(map);
	 }
	 
	 public int addjs(Permissions permissions) {
		 return wlbgcMapper.addjs(permissions);
	 }
	 
	 public int checkjs(String rolename) {
		 return wlbgcMapper.checkjs(rolename);
	 }
	 
	 public int editjs(Permissions permissions) {
		 return wlbgcMapper.editjs(permissions);
	 }
	 
	 public int deljs(int id) {
		 return wlbgcMapper.deljs(id);
	 }
	 
	 public String findjs(int id) {
		 return wlbgcMapper.findjs(id);
	 }
	 
	 
}
